﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using MonopolyRandy;

namespace MonopolyRandyTests
{
    [TestClass]
    public class BankTest
    {
        [TestMethod]
        public void TestOfAantalHuizenenHotelsGoedAaangemaaktWordt()
        {
            var heRaBank = new Bank();
            Assert.AreEqual(32, heRaBank._aantalHuizen());
            Assert.AreEqual(12, heRaBank._aantalHotels());
        }

        [TestMethod]
        public void TestOfSalarisAanSpelerBetaaldWordt()
        {
            var heRaBank = new Bank();
            var spelerHerman = new Speler("Herman", 850, new Bord());
            heRaBank.BetaalSalaris(spelerHerman);
            Assert.AreEqual(1050, spelerHerman.GetSaldo());
        }
    }
}
